Blame for All: a Bug
نویسندگان
چکیده
Several programming languages are beginning to integrate static and dynamic typing, including Racket (formerly PLT Scheme), Perl 6, and C# 4.0 and the research languages Sage (Gronski, Knowles, Tomb, Freund, and Flanagan, 2006) and Thorn (Wrigstad, Eugster, Field, Nystrom, and Vitek, 2009). However, an important open question remains, which is how to add parametric polymorphism to languages that combine static and dynamic typing. We present a system that permits a value of dynamic type to be cast to a polymorphic type and vice versa, with relational parametricity enforced by a kind of dynamic sealing along the lines proposed by Matthews and Ahmed (2008) and Neis, Dreyer, and Rossberg (2009). Our system includes a notion of blame, which allows us to show that when casting between a more-precise type and a less-precise type, any cast failures are due to the less-precisely-typed portion of the program. We also show that a cast from a subtype to its supertype cannot fail.
منابع مشابه
Bed bug bite, as an important health and urban pest
Bed bug (Cimex lectularius) is an nocturnal insect that feeding on human blood at all stages of them life, and known as a human ectoparasite. Bed bug is usually feeding from the face, neck, arms, arms, shoulders, legs, and especially parts of the body that are bare during sleep. Persons reaction differently to bed bug bites and may experience minor itching to severe allergies. Symptoms usually ...
متن کاملThe Effect of Bug Damage on Physicochemical, Electrophoretic and Quality Factors of Wheat Gluten
One of the most important forms of preharvest damage to wheat is caused by sunn pests. The insects insert their mouth parts into the immature grain and while injecting their saliva suck the milky juices. Flour from damaged wheat results in low baking performance due to the bug proteolytic enzymes’ injected which cause the breakdown of gluten structure in the dough. In the present study three wh...
متن کاملBed bug (Cimex lectularis) outbreak: A cross-sectional study in Polour, Iran
Background: Cimex lectularius (bed bug) are insects abundantly found in hot, temperate areas. This study is related to the outbreak of Cimex lectularius in a construction site around Polour in Amol, Iran. This cross-sectional study has examined 182 prefabricated houses made of intermodal containers [Conex] converted to a temporary housing, in a construction site.Methods...
متن کاملAllergic reactions and dermatitis to common bed bug bites: A case report from Ahvaz, Southwest Iran
---
متن کاملNo More Scapegoating
Behavioral software contracts supplement interface information with logical assertions. A rigorous enforcement of contracts provides useful feedback to developers if it signals contract violations as soon as they occur and if it assigns blame to violators with precise explanations. Correct blame assignment gets programmers started with the debugging process and can significantly decrease the ti...
متن کامل